Page({
    data: {

    },
    onLoad(options) {
      const title = options.title
      this.setNavBarTitle(title)
    },
    setNavBarTitle(title) {
      if(!title) {
        return
      }
      wx.setNavigationBarTitle({
        title: title,
      })
    },
    toBack() {
        wx.switchTab({
          url: '/pages/Index/index/index',
        })
    }
})